﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MembershipChangePassword.ascx.cs" Inherits="SocialFront.Web.usercontrols.Membership.MembershipChangePassword" %>

<div id="umbMemberControlsForgot">
    <h1>Reset Your Password</h1>
    
	<asp:panel id="NoGuid" Runat="server">
    <div>
    	<p class="umbMemberControlsNoGuid">Unfortunatley the link you clicked to bring you here seems to be broken. Please try copying the whole link and pasting it in the address bar.</asp:Literal></p>
	</div>
	</asp:panel>
	
    <asp:panel id="FormReset" Visible="false" Runat="server">
    <div class="form-submit"><p>Enter the email you used when signing up.</p>
        <asp:panel id="error" Visible="False" Runat="server"><p class="umbMemberControlsResetError"><asp:Literal id="mailError" Runat="server"></asp:Literal></p></asp:panel>
        
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="That email is not valid" ControlToValidate="EmailAddress" Display="Dynamic" ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"></asp:RegularExpressionValidator>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter an email address" ControlToValidate="EmailAddress" Display="Dynamic"></asp:RequiredFieldValidator>
	    <asp:TextBox id="EmailAddress" runat="server"></asp:TextBox>
	    
	    <p>Enter your username.</p>
	    <asp:TextBox id="Username" runat="server"></asp:TextBox>
	    
	    <asp:Button id="CheckUserInfo" Runat="server" Text="Send" CssClass="forgot_go" 
            onclick="CheckUserInfo_Click"></asp:Button>
	</div>
    </asp:panel>
    
    <asp:panel id="ChangePassword" Visible="False" Runat="server">
    <div class="form-submit">
        <p>Enter your new password and then repeat it to confirm.</p>
    	<asp:panel id="ChangePasswordConfirm" Visible="False" Runat="server"><p class="umbMemberControlsResetError"><asp:Literal id="ChangePasswordError" Runat="server"></asp:Literal></p></asp:panel>
    	
        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Passwords don't match!" ControlToValidate="Password" ControlToCompare="ConfirmPassword"></asp:CompareValidator>
	    <asp:TextBox id="Password" runat="server" TextMode="Password"></asp:TextBox>
	    
	    <p>Confirm new password</p>
	    <asp:TextBox id="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
	    
	    <asp:Button id="ConfirmResetPassword" Runat="server" Text="Send" 
            CssClass="forgot_go" onclick="ConfirmResetPassword_Click"></asp:Button>
	</div>
	</asp:panel>
	
	<asp:panel id="ResetComplete" Visible="False" Runat="server">
    <div class="form-submit">
        <p>Your password has now been reset so now you'll be able to <a href="<%= umbraco.library.NiceUrl(1176) %>">Login!</a></p>
	</div>
	</asp:panel>
</div>
